package com.huobao.yunying.adapters;

import com.huobao.yunying.entity.ShouruList;
import com.huobao.zhangying.R;

import android.content.Context;
import joanzapata.android.BaseAdapterHelper;
import joanzapata.android.QuickAdapter;

public class Adapter_Shouru_List extends QuickAdapter<ShouruList> {

	public Adapter_Shouru_List(Context context) {
		super(context, R.layout.item_shouru_list);
	}

	@Override
	protected void convert(BaseAdapterHelper arg0, ShouruList arg1) {
		arg0.setText(R.id.tv_time, arg1.add_time).setText(R.id.tv_price, arg1.price + "")
				.setText(R.id.tv_yongjin, arg1.commission_amount).setText(R.id.tv_bili, arg1.commission_rate+"%");
	}

}
